#ifndef __UART_H
#define __UART_H
#include "main.h"
void Print_UART_Init(void);
void HAL_UART_MspInit(UART_HandleTypeDef* huart);
void HAL_UART_MspDeInit(UART_HandleTypeDef* huart);
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart);
void Commu_UART_Init(void);
u32 UtilGetIntFlag(u8 *buf,u8*startflag,u8*endflag);
uint8	UtilGetStringFlag(u8 *buf,u8*startflag,u8*endflag,u8*content);
uint16 StringToHex(uint8 *sourse_str,uint8 len,uint8*destination_str);
void WatchdogInitial(void);
void FeedWatchDog(void);


#define	Log_Uart				USART6
#define	NB_Uart					USART1
#define	Communication_Uart		USART3

extern	uint8 ResppackRece;
extern	UART_HandleTypeDef LogUart;
extern	UART_HandleTypeDef CommunicationUart;
extern	uint8 Commu_RX_BUF[100];
extern	UART_HandleTypeDef NBUart;
#endif
